interface Person {
  // readonly只读属性
  readonly id: number;
  name: string;
  // age?：age可传可不传
  age?: number;
}

let viking: Person = {
  id: 1,
  name: 'viking',
  age: 20,
}

// 只读属性，不可赋值
// viking.id = 123


